package main.java.study.websocket;

import java.util.concurrent.CountDownLatch;

import cn.hutool.json.JSONUtil;
import main.java.study.websocket.utils.IDUtils;
import study.websocket.entity.vo.ApiAccessVo;
//import main.java.study.websocket.utils.WebSocketUtils;


public class Demo2 {
    public static CountDownLatch latch = new CountDownLatch(1);

    public static void main(String[] args) {
        ApiAccessVo patchNoInfoVO = new ApiAccessVo();
        patchNoInfoVO.setId(IDUtils.getUUID());
        patchNoInfoVO.setMsg_type("get_unfinished_task");
        patchNoInfoVO.setServicecode("public_serv");
        String msg = JSONUtil.parse(patchNoInfoVO).toString();
//        WebSocketUtils.sendMessage(msg, "ws://localhost:8082/ws");
    }
}
